#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    //explicit MyPushButton(QWidget *parent = nullptr);
    //normalImg 代表正常显示的图片

    //pressImg代表按下后显示的图片,默认为空

    MyPushButton(QString normalImg,QString pressImg = "");
    QString normalImgPath;
    QString pressedImgPath;

    void zoom1();
    void zoom2();

    //重写按钮按下和释放事件
    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);

signals:

};

#endif // MYPUSHBUTTON_H
